package com.mz.ozy.mvp.view;

import android.app.Activity;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.FreightBean;
import com.mz.ozy.bean.OrderBean;
import com.mz.ozy.bean.VoucherBean;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/12/7.
 */

public interface FirmOrderContract {

    interface View extends BaseView {

        void onSubmitSuccess(OrderBean orderBean);

        void onSubmitJfSuccess(OrderBean orderBean);

        void onSubmitError(String msg);

        void onPaySuccess(JSONObject orderBean);

        void onPayError(String s);

        void queryVoucherSuccess(VoucherBean orderBean);

        void queryFreightSuccess(FreightBean orderBean);
    }

    interface Presenter extends BasePresenter<View> {

        void submit(Activity activity, String content, String aid, String remark);

        void detailSubmit(Activity activity, String buylist, String gid, String aid, String freightId, String remark, String preType, String preActivId);

        void submitJf(Activity activity,String list,String addressId,String remark,String buyList);
    }
}
